﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000E7 RID: 231
	public class TAlterNetworkPolicyStmt : TCustomSqlStatement
	{
		// Token: 0x060007E2 RID: 2018 RVA: 0x0030141C File Offset: 0x002FF61C
		public void setNetworkPolicyName(TObjectName networkPolicyName)
		{
			this.networkPolicyName = networkPolicyName;
		}

		// Token: 0x060007E3 RID: 2019 RVA: 0x00301425 File Offset: 0x002FF625
		public TObjectName getNetworkPolicyName()
		{
			return this.networkPolicyName;
		}

		// Token: 0x060007E4 RID: 2020 RVA: 0x0030142D File Offset: 0x002FF62D
		public TAlterNetworkPolicyStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstAlterNetworkPolicy;
		}

		// Token: 0x060007E5 RID: 2021 RVA: 0x00301444 File Offset: 0x002FF644
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.networkPolicyName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x060007E6 RID: 2022 RVA: 0x00301481 File Offset: 0x002FF681
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060007E7 RID: 2023 RVA: 0x00301491 File Offset: 0x002FF691
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011F5 RID: 4597
		private TObjectName networkPolicyName;
	}
}
